<div class="bar" ng-class='type && "bar-" + type'></div>